package com.didispace.web;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import feign.Feign;

// 禁用hystrix配置，请在相应位置（public interface HelloService）设置
// @FeignClient(name="HELLO-SERVICE",configuration=DisableHystrixConfiguration.class)
public class DisableHystrixConfiguration {

    @Bean
    @Scope("prototype")
    public Feign.Builder feignBuilder(){
        return Feign.builder();
    }
}